package demo;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

/**
 * @Author 12629
 * @Description：
 */
public class Test {
    public static void func(List<Integer> list) {

    }

    public static void func2(ArrayList<Integer> list) {

    }

    public static void main(String[] args) {

        func(new ArrayList<>());
        func(new LinkedList<>());

        func2(new ArrayList<>());
        //func2(new LinkedList<>());

        List<Poker> pokers1 = new ArrayList<>();

        ArrayList<Poker> pokers2 = new ArrayList<>();


    }

    public static void main1(String[] args) {
        Game game = new Game();
        List<Poker> pokers = game.buyPoker();
        System.out.println(pokers);

        //洗牌
        game.shuffle(pokers);
        //
        System.out.println("洗牌：");
        System.out.println(pokers);

        //揭牌：
        List<List<Poker>> hand = game.game(pokers);
        System.out.println("揭牌：");
        for (int i = 0; i < hand.size(); i++) {
            System.out.println("第 " + (i + 1) + "个人的牌：" + hand.get(i));
        }
        System.out.println("剩下的牌：");
        System.out.println(pokers);
    }
}